<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<form id="editFeeForm" action="<%=request.getContextPath()%>/fee/edit.htm" method="post">
<input type="hidden" name="id" value="<c:out value='${fee.id }'/>" />
<input type="hidden" name="parentId" value="<c:out value='${fee.parentId }'/>" />
<div class="dlg_Content">
	<table border="0" cellspacing="10" cellpadding="0" style="width:440px; margin:0 auto; padding: 0 0;">
		<tr>
			<td height="40" width="60" align="right">费用名称</td>
			<td>
				<input id="edit_name" name="name" class="txt len20" type="text" value="<c:out value='${fee.name }'/>" maxlength="20" validator='{"label":"名称","required":true,"maxLength":40}' />
			</td>
		</tr>
		<tr>
			<td height="40" align="right">备注</td>
			<td>
				<input id="edit_remark" name="remark" class="txt len30" type="text" value="<c:out value='${fee.remark }'/>" maxlength="50"/>
			</td>
		</tr>
		<tr>
			<td height="40" align="right">类型</td>
			<td>
				<c:if test="${'EXP' == fee.feeType }">
				<input id="fee_type_1" value="EXP" name="feeType" type="radio" checked="checked" />
				<label for="fee_type_1">速运服务</label>&nbsp;&nbsp;
				</c:if>
				<c:if test="${'ADD' == fee.feeType }">
				<input id="fee_type_2" value="ADD" name="feeType" type="radio"  checked="checked" />
				<label for="fee_type_2">增值服务</label>
				</c:if>
			</td>
		</tr>
	</table>
</div>
<div class="dlg_Foot">
	<div class="blockl">
	<input id="dlg_FeeCancelBtn" class="clearfocus" type="button" value="" hidefocus="hidefocus" style="background: url('http://images.imoney.com.cn/Style/Images/btnCancel.png') no-repeat scroll 0px 0px transparent; border: medium none; cursor: pointer; width: 80px; height: 32px;"/>
	</div>
	<div class="blockr">
	<input id="dlg_FeeSaveBtn" class="clearfocus submitBtn" type="button" value="" hidefocus="hidefocus" style="background: url('http://images.imoney.com.cn/Style/Images/btnSaveBlue.png') no-repeat scroll 0px 0px transparent; border: medium none; cursor: pointer; width: 80px; height: 32px;"/>
	</div>
</div>
</form>

<script type="text/javascript">
<!--

$(document).ready(function(){
	
	$("#editFeeForm").validator({
		isRequiredStyleInUse:true,
		validInHidden:true
	}, { 
		callback : function(results) {
			$("#editFeeForm").ajaxSubmit({
				url : "<%=request.getContextPath()%>/fee/add.htm?rand=" + Math.random(),
				success : function(data) {
					loadData();
					myDialog.title("消息").content(data.message).width(160);
				}
			});
			
		}
	});
	
	$("#dlg_FeeCancelBtn").click(function(){
		art.dialog.get("editFeeDialog").close();
	});

});

//-->
</script>

